#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
@file_name: manually_creating_event_loop.py
@date: 2025-07-28 15:28
@author: Falling Snow
@desc: 手动创建 时间循环
"""

import asyncio


async def main():
    await asyncio.sleep(1)
    print("main running")


if __name__ == '__main__':
    loop = asyncio.new_event_loop()

    try:
        loop.run_until_complete(main())
    finally:
        # 关闭事件循环.
        loop.close()
